<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-md-6">
        <h2>会员管理</h2>
        <ol class="breadcrumb">
            <li>
                <a href="index.html">主页</a>
            </li>
            <li class="active">
                <strong>会员管理</strong>
            </li>
        </ol>
    </div>
    <div class="col-md-6">
    </div>
</div>


<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>会员列表</h5>
            <div class="ibox-tools">
                <a class="collapse-link">
                    <i class="fa fa-chevron-up"></i>
                </a>
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    <i class="fa fa-wrench"></i>
                </a>
                <ul class="dropdown-menu dropdown-user">
                    <li><a href="#">Config option 1</a>
                    </li>
                    <li><a href="#">Config option 2</a>
                    </li>
                </ul>
                <a class="close-link">
                    <i class="fa fa-times"></i>
                </a>
            </div>
        </div>
        <div class="ibox">
            <div class="ibox-content">
                <table class="table table-hover table-bordered">
                    <thead>
                    <tr>
                        <th>编号</th>
                        <th>会员名称</th>
                        <th>注册时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="users" id="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.username}</td>
                            <td>{$vo.create_time|date="Y-m-d h:i:s",###}</td>
                            <td>{$vo.status|user_status}</td>
                            <td>
                                <if condition="$vo.status eq 0">
                                    <a class="btn btn-warning btn-xs" href="{:U('admin/user/ban/id/'.$vo['id'])}">禁用</a>
                                <else />
                                    <a class="btn btn-success btn-xs" href="{:U('admin/user/enable/id/'.$vo['id'])}">启用</a>
                                </if>
                            </td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
                {$page}
            </div>
        </div>
    </div>
</div>